package com.own.business.message.center.business.service;

import com.own.business.message.center.entity.bo.MessageCenterGroupChildBo;
import com.own.business.message.center.entity.map.MessageCenterGroupChildMapVo;
import com.own.business.message.center.entity.po.MessageCenterGroupChild;
import com.own.business.message.center.entity.query.MessageCenterGroupChildQuery;
import com.own.business.message.center.entity.vo.MessageCenterGroupChildVo;
import com.own.component.common.base.service.BaseService;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * MessageCenterGroupChildService
 *
 * @author chenxueli
 * @date 2023-11-13 18:17:40
 */
public interface MessageCenterGroupChildService extends BaseService<
        MessageCenterGroupChild,
        MessageCenterGroupChildBo,
        MessageCenterGroupChildVo,
        MessageCenterGroupChildMapVo,
        MessageCenterGroupChildQuery
        > {

    /**
     * 根据消息key列表分组查询
     *
     * @param messageKeyList 消息key列表
     * @return 分组列表
     */
    Map<String, Set<String>> mapGroupKeyListByMessageKeyList(Collection<String> messageKeyList);

    /**
     * 根据分组key查询消息key列表
     *
     * @param groupKey 分组key
     * @return 消息key列表
     */
    List<String> listMessageKeyByGroupKey(String groupKey);

}

